import api from './api';

export const rankingService = {
  // 获取陪玩排名
  getCompanionRanking: async (year, month) => {
    const response = await api.get(`/api/ranking/companion`, {
      params: { year, month }
    });
    return response.data;
  },

  // 获取派单排名
  getDispatchRanking: async (year, month) => {
    const response = await api.get(`/api/ranking/dispatch`, {
      params: { year, month }
    });
    return response.data;
  },

  // 获取接待排名
  getReceptionistRanking: async (year, month) => {
    const response = await api.get(`/api/ranking/receptionist`, {
      params: { year, month }
    });
    return response.data;
  }
}; 